<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
    <base href="<%=basePath%>">
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title >问卷预览</title>
    <link href="less/Black.ico" rel="shortcut icon" />
    <link rel="stylesheet" type="text/css" href="css/demo.css" />
    <link rel="stylesheet" type="text/css" href="css/component.css" />
    <!--提示框-->
    <script src="js/jquery-2.0.3.js"></script>
    <link href="resourse/plugins/toast/jquery.toast.css" rel="stylesheet">
    <script src="resourse/plugins/toast/jquery.toast.js"></script>



</head>
<body>
<input type="hidden" name="path"     id="path"   value="<%=request.getContextPath()%>" />
<input type="hidden"      id="init"    />
<div class="container">

    <div class="fs-form-wrap" id="fs-form-wrap">
        <div class="fs-title">
            <h1 id="title"></h1>
        </div>
        <form id="myform" class="fs-form fs-form-full"  onsubmit="return false">
            <h5 id="summary"></h5>
            <ol class="fs-fields" id="questionlist">
            </ol><!-- /fs-fields -->

            <button id="submit" class="fs-submit" type="submit" style="cursor: pointer">提交问卷</button>
        </form><!-- /fs-form -->
    </div><!-- /fs-form-wrap -->

</div><!-- /container -->

<script>
//  形成问卷
    $(function(){
        var result = eval(${Questionnaire});
        if(result!=null) {
            creakQuestion(result);
            var result2 = eval(${AnserKey});
            if(result2!=null) {
                createResult(result2);
            }
        }
    });

</script>
<script src="jsp/monitor/questionshow.js?v=0.1"></script>
</body>
</html>